<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="__ADMIN__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="__ADMIN__/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="__ADMIN__/css/style.css" rel="stylesheet" type="text/css" />
<link href="__ADMIN__/lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>上报列表</title>
</head>
<body>

<!-- 框架显示面包屑导航 start -->
	<block name="breadcrumb">
		<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i>首页<span class="c-gray en">&gt;</span> 上报管理 <span class="c-gray en">&gt;</span> 上报列表 <a class="btn btn-success radius r mr-20" id="btn-refresh" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
	</block>
<!-- 框架显示面包屑导航 end -->

<!-- 内容 start -->
	<block name="content">
		<div class="pd-40">

			<div class="text-c"> 
			  	<form action="" method="get" class="form form-horizontal" id="form-scenery-search">
			日期范围：
			<input type="text" onfocus="WdatePicker({maxDate:$('#datemax').val()})" id="datemin" class="input-text Wdate" style="width:120px;" name="datemin" <if condition="$datemin != 0">value="<{$datemin||date="Y-m-d",###}>"</if> >
				-
				<input type="text" onfocus="WdatePicker({minDate:$('#datemin').val()})" id="datemax" class="input-text Wdate" style="width:120px;" name="datemax" <if condition="$datemax != 0">value="<{$datemax||date="Y-m-d",###}>"</if> >			  		
					<br/><br/>
					人员：<input type="text" class="input-text" style="width:120px;" name="phone">
					车间：<input type="text" class="input-text" style="width:120px;" name="workshop">
					部门：<input type="text" class="input-text" style="width:120px;" name="part">
					风险点：<input type="text" class="input-text" style="width:120px;" name="danger">
					<select name="is_danger" class="select" style="width:100px;display: inline;" id="is_danger">
						<option value='' <if condition="$is_danger == ''">selected="selected"</if>>全部</option>
						<option value='0' <if condition="$is_danger == 0">selected="selected"</if>>无隐患</option>
	                    <option value='1' <if condition="$is_danger == 1">selected="selected"</if>>有隐患</option>
					</select>				
					<select name="status" class="select" style="width:100px;display: inline;" id="status">
						<option value='' <if condition="$status == ''">selected="selected"</if>>全部</option>
						<option value='0' <if condition="$status == 0">selected="selected"</if>>驳回</option>
	                    <option value='1' <if condition="$status == 1">selected="selected"</if>>待处理</option>
						<option value='2' <if condition="$status == 2">selected="selected"</if>>完成</option>
					</select>
					
					<button type="submit" class="btn btn-success radius" ><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
					<button type="button" class="btn btn-success radius" onclick="resetSearch();"><i class="Hui-iconfont">&#xe66b;</i> 重置</button>				
				</form>
			</div>

			<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <!--<a class="btn btn-primary radius" data-title="添加配置" _href="<{:U('Config/addConfig')}>" onclick="Hui_admin_tab(this)" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加配置</a>--> <!--<a href="javascript:;" onclick="datasort()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe675;</i> 排序</a>--> </span> <span class="r">共有数据：<strong><{$count}></strong> 条</span> </div>

			<div class="mt-20">
				<table class="table table-border table-bordered table-hover table-bg table-sort">
					<thead>
						<tr class="text-c">
							<th width="25"><input type="checkbox" name="" value=""></th>
							<th width="40">上报事件ID</th>
							<th width="40">风险点id</th>
							<th width="50">上报人</th>
							<th width="50">是否隐患</th>
							<th width="70">问题描述</th>
							<th width="100">处理措施</th>
							<th width="100">班组意见</th>
							<th width="100">车间意见</th>
							<th width="100">部门意见</th>
							<th width="100">公司意见</th>
							<!--<th width="60">图片</th>-->
							<!--<th width="60">视频</th>-->
							<th width="40">状态</th>
							<th width="40">上报时间</th>
							<th width="40">已处理人</th>
							<th width="40">待处理人</th>
							<!-- <th width="100">操作</th> -->
						</tr>
					</thead>
					<tbody>

						<foreach name="list" item="v">					
							<tr class="text-c">
								<td><input type="checkbox" value="{$v.community_id}" name="id[]"></td>
								<td><{$v.push_id}></td>
								<td><{$v.object_id}></td>
								<td><{$v.push_user_name}></td>
								<td>
								    <if condition="$v['is_danger'] == 0">无
								    <else/>有	    			
								    </if>								
								</td>
								<td><{$v.desc}></td>
								<td><{$v.deal}></td>
								<td><{$v.sug1}></td>
								<td><{$v.sug2}></td>
								<td><{$v.sug3}></td>
								<td><{$v.sug4}></td>
								<!--<td>-->
									<!--<img src="<{$v['img_url']}>" alt="">-->
								<!--</td>-->
								<td>
									<if condition="$v['status'] == 0">待处理
										<elseif condition="$v['status'] == 1"/>待处理
										<elseif condition="$v['status'] == 2"/>完成
									</if>
								</td>
								<td><{$v['create_time']?date('Y-m-d H:i:s', $v['create_time']):''}></td>
								<td><{$v.deal_user_name}></td>
								<td><{$v.pending_user_name}></td>
								<!-- <td class="td-manage">
									<if condition="$v['state'] == 0">
										<a style="text-decoration:none" onClick="data_stop(this,<{$v.community_id}>,1)" href="javascript:;" title="禁用"><i class="Hui-iconfont">&#xe631;</i></a>
									<elseif condition="$v['state'] == 1"/>
										<a style="text-decoration:none" onClick="data_start(this,<{$v.community_id}>,0)" href="javascript:;" title="启用"><i class="Hui-iconfont">&#xe6e1;</i></a>
									</if>
									 <a title="帖子详情" data-title="帖子详情" _href="<{:U('Community/showCommunity', array('id'=>$v['community_id']))}>" onclick="Hui_admin_tab(this)" href="javascript:;" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe665;</i></a>
									 <a title="删除" href="javascript:;" onclick="data_del(this,<{$v.community_id}>)" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i>
										 </a>
								 </td> -->
							</tr>
						</foreach>

					</tbody>
				</table>
				<!-- 分页显示 -->
				<include file="Public:page" />				
			</div>
		</div>
		<script type="text/javascript" src="__COMMON__/js/jquery-2.0.3.min.js"></script>
		<script type="text/javascript" src="__ADMIN__/lib/layer/2.1/layer.js"></script>
		<script type="text/javascript" src="__ADMIN__/lib/laypage/1.2/laypage.js"></script> 
		<script type="text/javascript" src="__ADMIN__/lib/My97DatePicker/WdatePicker.js"></script> 
		<script type="text/javascript" src="__ADMIN__/js/H-ui.js"></script> 
		<script type="text/javascript" src="__ADMIN__/js/H-ui.admin.js"></script> 
		<script type="text/javascript">
			/*停用*/
			function data_stop(obj,id,state){
				layer.confirm('确认要禁用吗？',function(index){
					$.post("<{:U('Community/setState')}>", {id:id, state:state}, success, "json");
					return false;
		    		function success(data){
		    			if(data.status){
							layer.msg(data.msg,{icon:1,time:2000});
							setTimeout(function (){
								location.reload();
							}, 2000);
		    			} else {
							layer.msg(data.msg,{icon:5,time:2000});
		    			}
		    		}				
				});
			}

			/*启用*/
			function data_start(obj,id,state){
				layer.confirm('确认要启用吗？',function(index){
					$.post("<{:U('Community/setState')}>", {id:id, state:state}, success, "json");
					return false;
		    		function success(data){
		    			if(data.status){
							layer.msg(data.msg,{icon:1,time:2000});
							setTimeout(function (){
								location.reload();
							}, 2000);
		    			} else {
							layer.msg(data.msg,{icon:5,time:2000});
		    			}
		    		}
				});
			}
			/*删除*/
			function data_del(obj,id){
				layer.confirm('确认要删除此帖子吗？',function(index){
					$.post("<{:U('Community/del')}>", {id:id}, success, "json");
					return false;
		    		function success(data){
		    			if(data.status){
							layer.msg(data.msg,{icon:1,time:2000});
							setTimeout(function (){
							location.reload();
							}, 2000);							

		    			} else {
							layer.msg(data.msg,{icon:5,time:2000});
		    			}
		    		}				
				});
			}

		/*搜索重置*/
		function resetSearch()
		{
			$("#community_type").val("");
			$("#state").val("");
			$("#datemin").val("");
			$("#datemax").val("");
			$("#keyword").val("");														
		}				
		</script> 
	</block>
<!-- 内容 end -->	